package study.saas.order.service;

import study.saas.common.viewmodel.ApiResultV2;
import study.saas.common.viewmodel.PageModel;
import study.saas.order.entity.Commodity;
import study.saas.order.entity.Employee;
import study.saas.order.service.model.*;

/**
 * @author zxx
 */
public interface CommodityFacade {
    /**
     * 添加商品
     */
    ApiResultV2 addCommodity(CommodityAddDTO add);



    /**
     * 修改商品
     */
    ApiResultV2 modifyCommodity(CommodityModifyDTO modify);

    /**
     * 减少商品数量
     *
     */
    ApiResultV2 decreaseCommodity(CommodityDecreaseDTO decrease);

    /**
     *增加商品数量
     */
    ApiResultV2 increaseCommodity(CommodityIncreaseDTO increase);
    /**
     * 查询商品详情
     */

    ApiResultV2<Commodity> get(String commodityName);

    /***
     * 商品下架
     */
    ApiResultV2 deleteCommodity(String commodityName);

    /***
     * 删除商品
     */
    ApiResultV2 removeCommodity(String commodityName);



    ApiResultV2<PageModel<Commodity>> listCommodity(CommodityFilterDTO filter);

    ApiResultV2 upCommodity(String commodityName);

}
